package com.gxa.modules.mapper;


import com.gxa.modules.pojo.CustComplian;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface CustComplianMapper {
  /**
   *分页查询客户投诉表
   * @return
   */
    int findCountCust(@Param("status") Integer status);
    List<Map> findCustComplian(@Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize, @Param("status") Integer status);

  /**
   * 添加客户投诉
   * @param custComplian
   * @return
   */
    int addCustcomplian(CustComplian custComplian);

  /**
   * 删除客户投诉
   * @param id
   * @return
   */
    int deleteCustcomplian(@Param("id") Integer id, @Param("status") Integer status);

  /**
   *批量删除客户投诉
   * @param ids
   * @param status
   * @return
   */
    int deleteCustcomplianList(@Param("ids") int[] ids, @Param("status") Integer status);

  /**
   * 修改客户投诉
   * @param custComplian
   * @return
   */
    int updateCustcomplian(CustComplian custComplian);

  /**
   * 客户投诉查看显示接口
   * @param id
   * @return
   */
    List<CustComplian> seeCustcomplian(@Param("id") Integer id);

  /**
   * 添加处理
   * @param id
   * @param deal_note
   * @param deal_time
   * @return
   */
    int dealCustcomplian(@Param("id") Integer id, @Param("dealNote") String deal_note, @Param("dealTime") String deal_time);

  /**
   * 添加完结
   * @param id
   * @param end_note
   * @param end_time
   * @return
   */
    int endCustcomplian(@Param("id") Integer id, @Param("endNote") String end_note, @Param("endTime") String end_time);

  /**
   * 条件搜索客户投诉
   * @param customer_name
   * @param waybill_number
   * @param complian_type
   * @param operator_time
   * @return
   */
    List<Map> searchCustcomplian(@Param("customerName") String customer_name, @Param("waybillNumber") String waybill_number, @Param("complianType") Integer complian_type,
                                 @Param("operatorTime") String operator_time, @Param("status") Integer status);

}
